package observer_pattern;
import java.util.*;
public abstract class Mysubject {
protected ArrayList observers = new ArrayList();
	public void attach(Myobserver observer)
	{
		observers.add(observer);
	} 
	public void detach(Myobserver observer)
	{
		observers.remove(observer);
	}
	public abstract void cry();
}
